<<<<<<< HEAD
// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import VueCropper from 'vue-cropper'; 
import 'vue-cropper/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/css/icon.css';
import { usePermissStore } from './stores/usePermiss';
import App from './App.vue'
import router from './router'
import './assets/iconfont/iconfont.css'
import piniaPluginPersistedstate  from 'pinia-plugin-persistedstate'

// import './assets/css/font-awesome.css'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(VueCropper)
app.use(ElementPlus)
// 注册elementplus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
// 自定义权限指令
const permiss = usePermissStore();
app.directive('permiss', {
    mounted(el, binding) {
        if (!permiss.key.includes(String(binding.value))) {
            el['hidden'] = true;
        }
    },
});
=======
// import  './assets/css/main.css'
import {createApp} from 'vue'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import VueCropper from 'vue-cropper'; 

//导入element-plus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import './assets/iconfont/iconfont.css'

const app = createApp(App)
//注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(VueCropper)

app.use(ElementPlus, {locale: zhCn})
app.use(pinia)
app.use(router)
>>>>>>> c088509ecc2282a34d0b932f6925d649261c336d

app.mount('#app')
